
#include <Rectangle.h>

void Rectangle::setWidth(unsigned int width)
{
    this->width = width;
}

void Rectangle::setHeight(unsigned int height)
{
    this->height = height;
}

unsigned int Rectangle::getPerimeter() const
{
        return 2*(width + height);
}

unsigned int Rectangle::getArea() const
{
        return width * height;
}

